home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSHHHHAAAARRRR((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((AAAAuuuugggguuuusssstttt 11112222,,,, 1111999999990000)))) SSSSHHHHAAAARRRR((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- shar - create shell archives
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- shar [ options ] file ...
- shar -S [ options ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Shar creates "shell archives" (or shar files) which are in
- text format and can be mailed. These files may be unpacked
- later by executing them with /bin/sh. The resulting archive
- is sent to standard out unless the -_o option is given. A
- wide range of features provide extensive flexibility in
- manufacturing shars and in specifying shar "smartness."
- Archives may be "vanilla" or comprehensive. This manual
- page reflects shar version 3.49.
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- Options can be given in any order. Some options depend on
- each other:
- The -_o option is required if the -_l or -_L option is used.
- The -_n option is required if the -_a option is used.
- See -_V below.
-
- -_V Produce "vanilla" shars which rely only upon the
- existence of sed and echo in the unsharing environment.
- In addition, "if test" must also be supported if the -_X
- option is used. The -_V silently disables options
- offensive to the "network cop" (or "brown shirt"), but
- does warn you if it is specified with -_B, -_C, -_p or -_M
- (any of which does or might require uudecode or
- compress in the unsharing environment).
-
- -_v Verbose OFF. Disables the inclusion of comments to be
- output when the archive is unpacked.
-
- -_w Do NOT check with 'wc -c' after unpack. The default is
- to check.
-
- -_n name
- Name of archive to be included in the header of the
- shar files. See the -_a switch.
-
- -_a Allows automatic generation of headers:
- Submitted-by: who@where
- Archive-name: <name>/part##
- The <name> must be given with the -_n switch. If name
- includes a '/' "/part" isn't used. Thus:
- -n xyzzy produces:
- xyzzy/part01
- xyzzy/part02
-
-
-
-
- Page 1 (printed 3/9/94)
-
-
-
-
-
-
- SSSSHHHHAAAARRRR((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((AAAAuuuugggguuuusssstttt 11112222,,,, 1111999999990000)))) SSSSHHHHAAAARRRR((((1111))))
-
-
-
- -n xyzzy/patch produces:
- xyzzy/patch01
- xyzzy/patch02
-
- -n xyzzy/patch01. produces:
- xyzzy/patch01.01
- xyzzy/patch01.02
-
- The who@where can be explicitly stated with the -_s
- switch if the default isn't apropriate. Who@where is
- essentially built as `whoami`@`uname`.
-
- -_s who@where
- Override automatically determined submitter name.
-
- -_x Overwrite existing files without checking. If neither
- -_x nor -_X is specified, the unpack will check for and
- not overwrite existing files when unpacking the archive
- (unless '-c' is passed as a parameter to the script
- when unpacking).
-
- -_X Interactively overwrite existing files (DO NOT USE FOR
- SHARS SUBMITTED TO THE NET).
-
- -_B Treat all files as binary, use uuencode prior to
- packing. This increases the size of the archive. The
- recipient must have uudecode in order to unpack. (USE
- OF UUENCODE IS NOT APPRECIATED BY MANY ON THE NET).
-
- -_T Treat all files as text (default).
-
- -_C Compress and uuencode all files prior to packing. The
- recipient must have uudecode and uncompress in order to
- unpack (USE OF UUENCODE AND COMPRESS IS NOT APPRECIATED
- BY MANY ON THE NET).
-
- -_m Generate 'touch' commands to restore the file
- modification dates when unpacking files from the
- archive.
-
- -_p Allow positional parameter options. The options "-_B"
- and "-_T" and "-_C" may be embedded, and files to the
- right of the option will be processed in the specified
- mode.
-
- -_b X When doing compression, use '-bX' as a parameter to
- compress. The -_B options turns on the -_C option by
- default.
-
- -_M Mixed mode. Determine if the files are text or binary
- and archive correctly. Files found to be binary are
- uudecoded prior to packing (USE OF UUENCODE IS NOT
-
-
-
- Page 2 (printed 3/9/94)
-
-
-
-
-
-
- SSSSHHHHAAAARRRR((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((AAAAuuuugggguuuusssstttt 11112222,,,, 1111999999990000)))) SSSSHHHHAAAARRRR((((1111))))
-
-
-
- APPRECIATED BY MANY ON THE NET).
-
- -_P Use temporary files instead of pipes in the shar file.
-
- -_c Start the shar with a cut line. A line saying 'Cut
- here' is placed at the start of each output file.
-
- -_f Restore by filename only, rather than path. This option
- causes only file names to be used, which is useful when
- building a shar from several directories, or another
- directory. Note that if a directory name is passed to
- shar, the substructure of that directory will be
- restored whether -_f is specified or not.
-
- -_d XXX
- Use XXX to delimit the files in the shar instead of
- SHAR_EOF. This is for those who want to personalize
- their shar files.
-
- -_F Forces the prefix character (normally 'X' unless the
- parameter to the -_d option starts with 'X') to be
- prepended to every line even if not required. This
- option may slightly increase the size of the archive,
- especially if -_B or -_C is used.
-
- -_o XXX
- Save the archive to files XXX.01 thru XXX.nn instead of
- standard out. Must be used when the -_l or the -_L
- switches are used
-
- -_l XX
- Limit the output file size to XXk bytes but don't split
- input files.
-
- -_L XX
- Limit output file size to XXk bytes and split files if
- necessary. The archives created with this option must
- be unpacked in correct order.
-
- -_S Read list of files to be packed from the standard input
- rather than from the command line. Input must be in a
- form similar to that generated by the find command, one
- filename per line. This switch is especially useful
- when the command line will not hold the list of files
- to be packed. For example:
-
- find . -type f -print | sort | shar -S -C -L50 -o /tmp/big
-
- If -_p is specified on the command line, then the
- options "-_B" and "-_T" and "-_C" may be included in the
- standard input (on a line separate from filenames).
- The maximum number of lines of standard input, file
-
-
-
- Page 3 (printed 3/9/94)
-
-
-
-
-
-
- SSSSHHHHAAAARRRR((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((AAAAuuuugggguuuusssstttt 11112222,,,, 1111999999990000)))) SSSSHHHHAAAARRRR((((1111))))
-
-
-
- names and options, may not exceed 1024.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- shar *.c > cprog.shar # all C prog sources
- shar -v *.[ch] > cprog.shar # non-verbose, .c and .h files
- shar -B -l28 -oarc.sh *.arc # all binary .arc files, into
- # files arc.sh.01 thru arc.sh.NN
- shar -f /lcl/src/u*.c > u.sh # use only the filenames
-
- WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
- No chmod or touch is ever generated for directories created
- when unpacking. Thus, if a directory is given to shar, the
- protection and modification dates of corresponding unpacked
- directory may not match those of the original.
-
- If a directory is passed to shar, it may be scanned more
- than once. Therefore, one should be careful not change the
- directory while shar is running.
-
- Be careful that the output file(s) are not included in the
- inputs or shar may loop until the disk fills up. Be
- particularly careful when a directory is passed to shar that
- the output files are not in that directory (or a
- subdirectory of that directory).
-
- Use of the -_B, -_M or -_C may slow the archive process
- considerably, depending on the number of files.
-
- Use of -_X produces shars which _W_I_L_L cause problems with many
- unshar procedures. Use this feature only for archives to be
- passed among agreeable parties. Certainly, -_X is NOT for
- shell archives which are to be submitted to Usenet. Usage
- of -_B or -_C in net shars will cause you to be flamed off the
- earth. Using -_m or not using -_F may also get you occasional
- complaints.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- unshar(1)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Error messages for illegal or incompatible options, for
- non-regular, missing or inaccessible files or for (unlikely)
- memory allocation failure.
-
- AAAAUUUUTTTTHHHHOOOORRRRSSSS
- shar3 is a derived work based on the efforts of:
- decvax!microsof!uw-beave!jim (James Gosling at CMU)
- Michael A. Thompson, Dalhousie University, Halifax, N.S., Canada
- davidsen@sixhub (Bill Davidsen)
- rhg@CPS.COM (Richard H. Gumpertz)
- colas@avahi.inria.fr (Colas Nahaboo)
- bill@netagw.com (Bill Aten)
-
-
-
- Page 4 (printed 3/9/94)
-
-
-
-
-
-
- SSSSHHHHAAAARRRR((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((AAAAuuuugggguuuusssstttt 11112222,,,, 1111999999990000)))) SSSSHHHHAAAARRRR((((1111))))
-
-
-
- dennis%nanovx@gatech.edu (Dennis Boylan)
- wht%n4hgf@gatech.edu (Warren Tucker)
- (other anonymous persons)
-
- man pages:
- jhd@irfu.se (Jan Dj{rv)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 5 (printed 3/9/94)
-
-
-
-